package com.dragon.modules.yuegou.service.order;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.common.web.PageRequest;
import com.dragon.modules.yuegou.entity.order.OrderShippingEntity;
import com.dragon.modules.yuegou.model.order.OrderShipping;
import com.dragon.modules.yuegou.query.order.FreightOrderQuery;

/**
 * 订单配送 服务接口
 *
 * @author pbuilder generated
 * @date 2019-04-03 13:57:50
 * @version 2.0
 */
public interface OrderShippingService extends IService<OrderShippingEntity> {

	IPage<OrderShipping> getList(PageRequest page,FreightOrderQuery orderShippingQuery);

	/**
	 * 根据订单号设置运费
	 * @param orderNo
	 * @return
	 */
	OrderShipping setFreightByOrderNo(String orderNo);


	/**
	 * 根据订单地址设置运费
	 * @param orderShipping
	 * @return
	 */
	OrderShipping setFreightByOrderShipping(OrderShipping orderShipping,String merchantId,String cargoPrice);

	/**
	 * 达达订单回调
	 * @param orderShipping
	 */
	void updateDadaShipping(OrderShipping orderShipping);

}